package cc.mrbird.system.service.impl;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;
import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import cc.mrbird.common.service.impl.BaseService;
import cc.mrbird.common.util.MD5Utils;
import cc.mrbird.job.dao.TransMapper;
import cc.mrbird.job.domain.Trans;
import cc.mrbird.system.domain.User;
import cc.mrbird.system.domain.UserRole;
import cc.mrbird.system.domain.UserWithRole;
import cc.mrbird.system.service.TransService;
import tk.mybatis.mapper.entity.Example;

@Service("transService")
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class TransServiceImpl extends BaseService<Trans> implements TransService {

	@Autowired
	private TransMapper transMapper;

	@Override
	public Trans findBySeqNo(String seqNo) {
		return transMapper.findTransBySeqNo(seqNo);
	}

	@Override
	public List<Trans> findTransWithSel(Trans trans) {
		return transMapper.findTransWithSel(trans);
	}

	@Override
	public boolean updateTrans(Trans trans) {
		int i =  transMapper.updateTrans(trans);
		if(i==1)
			return true;
		else
			return false;
		
	}




}
